package com.cdc.youthbanner.ui;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.cdc.youthbanner.R;
import com.cdc.youthbanner.adapter.MyRecyclerViewAdapter;
import com.cdc.youthbanner.databinding.ActivityRecyclerviewBannerBinding;

public class RecyclerViewBannerActivity extends AppCompatActivity {

    private ActivityRecyclerviewBannerBinding mBinding;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mBinding=ActivityRecyclerviewBannerBinding.inflate(LayoutInflater.from(this));
        setContentView(mBinding.getRoot());
        mBinding.netRv.setLayoutManager(new LinearLayoutManager(this));
        mBinding.netRv.setAdapter(new MyRecyclerViewAdapter(this));
    }

}
